<form id="frmForm" action="<?=base_url()?>klgb/readexcel<?=url_suffix()?>" method="post" enctype="multipart/form-data"> 
<div class="fleft boxinsert">
	<div class="fleft">
    	<input id="fileupload" multiple="multiple" type="file" value="" name="myfile">
    </div>
    <div class="fright">
    	<div  class="fleft mtop5"><?=$titles;?></div>
        <div id="loadfile" class="btn fright mleft5"><span class="fleft icon icon-edit"></span><span class="fleft">Tải file mẫu</span></div>
    	<div id="back" class="btn fright mleft5"><span class="fleft icon icon-delete"></span><span class="fleft">Trở lại</span></div>
		<div id="saves" class="btn fright mleft5"><span class="fleft icon icon-add"></span><span class="fleft">Import</span></div>
    </div>
</div>
</form>
<script type="text/javascript">
	$(function(){
		 $("#saves").click(function(){
			 $("#frmForm").submit();
		 });
		 $("#back").click(function(){
			window.location = "<?=base_url()?>klgb";
		 });
		 $("#loadfile").click(function(){
			window.location = '<?=$fileimport?>';
		 });
	});
</script>